package linear;

import java.util.Stack;

public class TestStack {
    public static void main(String[] args) {
        Stack<StringBuilder> stack = new Stack<>();
        stack.push(new StringBuilder());
        stack.peek().append("s");
        stack.peek().append("t");
        stack.push(new StringBuilder("a"));
        while (!stack.isEmpty()) {
            System.out.println(stack.pop().toString());
        }
    }
}
